/*
 * DummyNW.java
 * 
 *  author: Daniel Rudigier
 *    date: 31.12.2008
 * 
 * 
 */
package at.syncme.aspects.network;

import at.syncme.framework.Event;
import at.syncme.framework.Network;

/**
 * dummy network implementation
 * 
 * @author Daniel Rudigier
 */
public class DummyNW extends Network {

    /**
     * override
     * 
     * @see at.syncme.framework.Network#sendToAllNodes(at.syncme.framework.Event)
     */
    public void sendToAllNodes(Event e) {
        System.out.println("dummy nw: broadcast " + e);
        
    }

    /**
     * override
     * 
     * @see at.syncme.framework.Network#sendToNode(short,
     *      at.syncme.framework.Event)
     */
    public void sendToNode(short nodeId, Event e) {
        System.out.println("dummy nw: unicast (" + nodeId + ") " + e);
    }

}
